﻿using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BangumiWpfApp1
{
    public class DapperService
    {
        public static MySqlConnection MySqlConnection()
        {
            string mysqlConnectionString = "Server=127.0.0.1;port=3306;Database=bangumi;uid=xyf;Password=root;Character Set=utf8;AllowUserVariables=True";
            var connection = new MySqlConnection(mysqlConnectionString);
            connection.Open();
            return connection;
        }
    }
}
